New Custom Account Tab
Jamroom Developers
The docblock for jrCore_form_get_saved_data() reads:
Get all posted data that can be saved to the Data Store for a module
* @param string $module Module that has registered a designer form view
* @param string $view View to get form fields for
* @param array $_data $_REQUEST data to parse (default is $_post)
* @return mixed
*/
It takes $_post and cleans out everything that is not going to be able to be stored in your modules datastore.
So that means everything that does not have the prefix of your modules datastore.
so you need to check the names of your form field line up with what is going into your datastore.
eg: if in your modules schema.php file you have:
jrCore_db_create_datastore('myCustomModule', 'report');
then your form fields in your 'settings' form would need to look like this:
// report_id
$_tmp = array(
'name' => 'report_id',
'type' => 'hidden',
'value' => $_report['_item_id']
);
jrCore_form_field_create($_tmp);
// Report body
$_tmp = array(
'name' => 'report_body',
'label' => 'Report',
'help' => 'Enter any report body into this area',
'type' => 'textarea',
'validate' => 'printable',
'required' => true
);
jrCore_form_field_create($_tmp);
.....
The 'name' lines up with what datastore value the input value will be stored on.